package com.graduation.dao;

import com.graduation.entity.Shop;
import com.graduation.exception.ShopIsExitsException;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ShopDao {
    Integer openStore(Shop shop);
    Shop findShopMsg(String email);
    //给商家表中写入数据
    Integer insertEmailToShop(Shop shop) throws ShopIsExitsException;
    //查询店铺的ID
    Integer queryShopId(@Param("email") String email);
}
